package com.yellowpage.wf.data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.SEQUENCE;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * NodeContext entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "WF_NODE_CONTEXT")
public class NodeContext implements java.io.Serializable {

	// Fields

	private Long nodeContextId;
	private String paramName;
	private String defaultValue;
	private Long workflowNodeId;
	private String paramType;

	// Constructors

	/** default constructor */
	public NodeContext() {
	}

	/** full constructor */
	public NodeContext(String paramName, String defaultValue,
			Long workflowNodeId, String paramType) {
		this.paramName = paramName;
		this.defaultValue = defaultValue;
		this.workflowNodeId = workflowNodeId;
		this.paramType = paramType;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "identity")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "NODE_CONTEXT_ID", unique = true, nullable = false, precision = 18, scale = 0)
	public Long getNodeContextId() {
		return this.nodeContextId;
	}

	public void setNodeContextId(Long nodeContextId) {
		this.nodeContextId = nodeContextId;
	}

	@Column(name = "PARAM_NAME", length = 128)
	public String getParamName() {
		return this.paramName;
	}

	public void setParamName(String paramName) {
		this.paramName = paramName;
	}

	@Column(name = "DEFAULT_VALUE", length = 2000)
	public String getDefaultValue() {
		return this.defaultValue;
	}

	public void setDefaultValue(String defaultValue) {
		this.defaultValue = defaultValue;
	}

	@Column(name = "WORKFLOW_NODE_ID", precision = 18, scale = 0)
	public Long getWorkflowNodeId() {
		return this.workflowNodeId;
	}

	public void setWorkflowNodeId(Long workflowNodeId) {
		this.workflowNodeId = workflowNodeId;
	}

	@Column(name = "PARAM_TYPE", length = 16)
	public String getParamType() {
		return this.paramType;
	}

	public void setParamType(String paramType) {
		this.paramType = paramType;
	}

}